package com.sgj.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author 沈国纪
 * @date 2021/5/13 20:51
 */
@RestController
public class PaymentController {

	@Value("${server.port}")
	private String serverPort;

	@GetMapping("payment/consul")
	public String paymentConsul(){
		return "springcloud with consul:" + serverPort + "\t" + UUID.randomUUID().toString();
	}
}
